/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package overfeatfeatureextraction;

import java.io.File;
import java.io.FileFilter;

/**
 *
 * @author mwh
 */
public class ImageFileFilter implements FileFilter {

    @Override
    public boolean accept(File file) {
        String name = file.getName().toLowerCase();
        if (name.endsWith(".jpg") || name.endsWith(".png")) {
            return true;
        }
        return false;

    }
}
